#ifndef _BSP_W25Q64_H__
#define _BSP_W25Q64_H__

#include "gd32f4xx.h"

void spi_port_init(void);

uint16_t W25Q64_readID(void);
void W25Q64_erase_chip (void);
void W25Q64_write_sector(uint8_t *buffer, uint32_t addr, uint16_t bytes);
void W25Q64_read_sector(uint8_t *buffer, uint32_t addr, uint16_t bytes);
void W25Q64_erase_sector (uint32_t addr);

#endif
